package com.icedevcloud.common.openfeign.config;

import com.icedevcloud.common.openfeign.interceptor.FeignInterceptor;
import feign.RequestInterceptor;
import org.springframework.boot.autoconfigure.AutoConfiguration;
import org.springframework.context.annotation.Bean;

/**
 * @author dengbing
 * @since 2023-09-11
 */
@AutoConfiguration
public class FeignInterceptorConfiguration {

    /**
     * Feign 拦截器
     *
     * @return
     */
    @Bean
    public RequestInterceptor requestInterceptor() {
        return new FeignInterceptor();
    }

}
